from django.db import models


class User(models.Model):
    car_sn = models.CharField('车牌号', max_length=20, unique=True)


class Price(models.Model):
    price = models.IntegerField("价格")
    level = models.SmallIntegerField('价格分类')  # 1业主价格  2 非业主


class Record(models.Model):
    car_sn = models.CharField('车牌号', max_length=20,null=True)
    start = models.DateTimeField(null=True)
    end = models.DateTimeField(null=True)
    amount = models.IntegerField('停车花费', default=0)
